package beautiful.butterfly.server.nettyserver;

import beautiful.butterfly.server.nettyserver.pojo.Request;
import beautiful.butterfly.server.nettyserver.pojo.Response;

public class TaskFactory {

    public Response doTask() throws Exception {
        Request request = new Request();
        request.setMainModuleId(1);
        request.setSubModuleId(1);
        request.setCreateTime(System.currentTimeMillis());
        request.setContent("ok");
        int port = 8080;
        return new Client().connect("127.0.0.1", port, request);
    }
}
